#ifndef CONTROLWIDGET_H
#define CONTROLWIDGET_H

#include <QWidget>
#include <QLabel>
#include <QMouseEvent>
#include <QPixmap>
#include <QPainter>
#include <QPaintEvent>
#include <QDebug>

class controlWidget : public QLabel
{
    Q_OBJECT
public:
    explicit controlWidget(QWidget *parent = nullptr);

protected:
    void mouseReleaseEvent(QMouseEvent *ev) override;
    void paintEvent(QPaintEvent *) override;

private:
    double currentPercentage = 0.0;
    void Fun_drawArc(QPainter *painter);  //画弧线

signals:
    void signal_onClicked();
public slots:
    void slot_onChangeCurrentPercentage(double);
};

#endif // CONTROLWIDGET_H
